# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=b43-fwcutter
pkgver=019
pkgrel=3
pkgdesc="Tool to extract firmware from Broadcom drivers"
url="https://wireless.wiki.kernel.org/en/users/Drivers/b43"
arch="all"
license="BSD-2-Clause"
options="!check" # No test suite
subpackages="$pkgname-doc"
source="http://bues.ch/b43/fwcutter/b43-fwcutter-$pkgver.tar.bz2"

build() {
	make
}

package() {
	make PREFIX="$pkgdir"/usr install
	mkdir -p "$pkgdir"/usr/share/
	mv "$pkgdir"/usr/man "$pkgdir"/usr/share/
}

sha512sums="2a439d1583d1ee7b13dd6a7526b78b216073e044c3934adf6615b8d2ca9a4b8c74db9791182d27baf1690b5c5ff6ce1a9c8dd4fb796e47939d055fef5bb37960  b43-fwcutter-019.tar.bz2"
